import { Component } from '@angular/core';
@Component({
  selector: 'app-zero',
  templateUrl: './zero.component.html',
  styleUrls: ['./zero.component.css'],
})
export class ZeroComponent {
  event: string = '';
  eventList: string[] = [];
  addClick() {
    if (this.event.trim()) {
      this.eventList.push(`${this.event}`);
      this.event = '';
    }
  }
  deleteClick(index: number) {
    this.eventList.splice(index, 1);
  }
}
